package com.whfp.coky.utils

import com.whfp.coky.R
import org.angmarch.views.NiceSpinner

/**
 *
 * 下拉框构建工具
 * created by coky on 2022/3/18
 */
class SpinnerUtils {
    companion object{
        fun buildSpinner(spinner: NiceSpinner,datas:List<String>,bgRes:Int = R.drawable.et_bg){
            spinner.let {
                it.attachDataSource(datas)
                it.setBackgroundResource(bgRes)
            }

        }
    }
}